package com.atguigu.mybatisgenerator.model;

import io.swagger.annotations.ApiModelProperty;

public class Page {
    @ApiModelProperty(value = "当前页", dataType ="int", example = "123")
    private int pageNum;//当前页

    @ApiModelProperty(value = "当前需要显示记录数", dataType ="int", example = "123")
    private int pageSize;//当前需要显示记录数

    @ApiModelProperty(value = "总记录数", dataType ="long", example = "123")
    private long total;//总记录数

    @ApiModelProperty(value = "总分页数", dataType ="int", example = "123")
    private int pages;//总分页数

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }
}
